import { createApp } from 'vue'
// 导入App根组件
// import App from './components/01.watch/App.vue'
// import App from './components/02.life-cycle/App.vue'
// import App from './components/03.father-son/App.vue'
// import App from './components/04.brother/App.vue'
// import App from './components/05.provide&inject/App.vue'
import App from './components/06.network/App.vue'
// 导入css
import './index.css'
import './assets/css/bootstrap.css'

// 全局配置axios
import axios from 'axios';
const app=createApp(App);
// 为axios配置请求的根路径
axios.defaults.baseURL='http://www.escook.cn';
// 将axios挂载为app的全局自定义属性之后
// 每个组件可以通过this直接访问到全局挂载的自定义属性
// 举例：this.$http.get('/users')
app.config.globalProperties.$http=axios;



app.mount('#app')
